package com.projectforele.projectele.Controller;

import com.projectforele.projectele.Mybatis.Dao.LoginInter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping(value = "/views")
@Component
public class LoginController {
//    @Autowired
//    private LoginInter loginInter;
    @RequestMapping(value = "/index")
    public ModelAndView index(HttpServletRequest request){
        request.setAttribute("index","are you ready");
        return new ModelAndView("index");
    }
}
